<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class PurchaseGoodsOut extends Validate
{
    protected $rule = ['out_info' => 'require'
    ];

    protected $message = ['out_info.require' => '申请说明为必填项','status.require' => '状态,1=待审核,2=申请通过,3=审核未通过为必填项','status.number' => '状态,1=待审核,2=申请通过,3=审核未通过需为数字','apply_info.require' => '审批意见为必填项',
    ];

    /**
     * 添加
     */
    public function sceneAdd()
    {
        return $this->only(['out_info','status','apply_info',]);
    }

    /**
     * 编辑
     */
    public function sceneEdit()
    {
        return $this->only(['out_info','status','apply_info',]);
    }
}
